package biz

import (
	"context"
)

type UserRepo interface {
	Save(context.Context) (uint64, error)
	Get(context.Context) (uint64, error)
}

type UserBiz struct {
	repo UserRepo
}

func NewUserBiz(repo UserRepo) *UserBiz {
	return &UserBiz{
		repo: repo,
	}
}

func (b *UserBiz) Get(ctx context.Context) (uint64, error) {
	return b.repo.Get(ctx)
}
